// board.js
Page({
  "data": {
    "duration": 1000,
    "indicatorDots":true,
    "imgUrls": [
      "http://img7.doubanio.com/view/movie_poster_cover/lpst/public/p2496178862.jpg",
      "http://img7.doubanio.com/view/movie_poster_cover/lpst/public/p2494948513.jpg"
    ],
    loading:true
  },
  onLoad(){
    const that = this
    wx.request({  
      url: 'http://api.douban.com/v2/movie/in_theaters',
      data: { count: 5 },
      header:{
        "content-type":"application/text"
      },
      success: function (res) {
        that.setData({ 
          imgUrls:res.data.subjects,
          loading:false
        }) 
      }
    })   
  }
 
})